package com.one.service;

import com.one.util.RequestReturn;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author: tzy
 * @create: 2022/1/20
 * @FileName: BuyCommentService
 * @Description: 购买会员业务层接口
 */
@FeignClient(name = "street-tzy")
public interface BuyMemberService {
    /**
     * @author: tzy
     * @date: 2022/1/20
     * @return:
     * @Description: 微信支付购买会员
     */
    @PostMapping("/wxpay/unifiedOrder")
    RequestReturn<Map<String, String>> wechatPayUnifiedOrder(@RequestParam("num") Integer num);
    //@RequestParam("body") String body,@RequestParam("totalFee") Integer totalFee

    /**
     * @author: tzy
     * @date: 2022/1/20
     * @return:
     * @Description: 查询会员到期时间
     */
    @GetMapping("/wxpay/queryUserMemberDate")
    RequestReturn<String> queryUserMemberDate();
}
